package com.owen.shared.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class AddNewClassEvent extends GwtEvent<AddNewClassEvent.Handler> {
	
	public static final Type<Handler> TYPE = new Type<Handler>();
	
	public interface Handler extends EventHandler {
		void addNewClass();
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<Handler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(Handler handler) {
		handler.addNewClass();
		
	}

}
